import request from '@/utils/request'

//历史工作
export function historyWork(data){
	return request({
		'url':`/user/entry/history`,
		'method':'get',
		'data':data
	})
}
//现任工作
export function currentWork(data){
	return request({
		'url':`/user/entry/current`,
		'method':'get',
		'data':data
	})
}

//历史合同
export function historyContract(){
	return request({
		'url':`/user/contract/history`,
		'method':'get',
	})
}

//履行合同
export function currentContract(data){
	return request({
		'url':`/user/contract/current`,
		'method':'get',
		'data':data
	})
}

//查询用户合同详情/app/user/contract/{userContractId}
export function currentDetail(userContractId){
	return request({
		'url':`/user/contract/${userContractId}`,
		'method':'get',
	})
}


//我的钱包
export function myWallet(){
	return request({
		'url':`/userWallet/wallet`,
		'method':'get',
	})
}

//提现
export function cashWallet(data){
	return request({
		'url':`/userWallet/withdrawal`,
		'method':'post',
		'data':data
	})
}
//提现历史
export function historyWallet(data){
	return request({
		'url':`/userWallet/withdrawalRecord`,
		'method':'get',
		'data':data
	})
}